<?php

	/**
	 * @see Bike_Model_Mapper_Abstract
	 */
	require_once 'Bike/Model/Mapper/Abstract.php';
	
	
	class Bike_Model_Mapper_Title extends Bike_Model_Mapper_Abstract
	{
		const DB_TABLE_NAME = 'title';
		const DB_TABLE_PK_NAME = 'title_id';
		const DB_TABLE_ALIAS = 't';
		const DB_TABLE_LOCALIZATION = True;

		static public function getInstance()
	    {
	        return self::_getInstance(__CLASS__);
	    }
	    
	    public function getFieldsParams()
	    {
	    	return array_merge(parent::getFieldsParams(), array(
	    		'title_id' => array(
	    			self::PARAMS_FORM_ELEMENT => array(
	    				'label' => $this->translate('Title ID'),
	    			),
	    		),
	    		'text_ru' => array(
	    			self::PARAMS_FORM_ELEMENT => array(
	    				'label' => $this->translate('Title (Russian)'),
	    				'required' => true,
	    			),
	    		),
	    		'text_en' => array(
	    			self::PARAMS_FORM_ELEMENT => array(
	    				'label' => $this->translate('Title (English)'),
	    				'required' => true,
	    			),
	    		),
	    	));
	    }
	    
	}